package com.Logistics.fegin;

import com.Logistics.entity.UserRole;
import com.Logistics.mycommon.tools.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "pd-auth",path = "/userRole")
public interface UserRoleFeignClient {


    /**
     * 创建客户时默认授予角色
     * @param userRole
     * @return
     */
    @PostMapping("/addMember")
    Result addMember(@RequestBody UserRole userRole);

    /**
     * 根据用户id删除用户角色数据
     * @param id
     * @return
     */
    @GetMapping("/deleteUserRole/{id}")
    public Result deleteUserRole(@PathVariable String id);
}
